using System;
using System.Collections;
using System.Drawing;

namespace Mosaic.Interfaces
{
    public class ImageInfo
    {
        //Pfad zum Bild
        private string path;
        public string Path
        {
            get { return path; }
            set { path = value; }
        }

        private ArrayList _data;
        public ArrayList Data
        {
            get
            {
                if (_data == null)
                    _data = new ArrayList();

                return _data;
            }
            set
            {
                if (_data == null)
                    _data = new ArrayList();

                _data = value;
            }
        }

        #region Bildfarben
        Color[] averageColors;

        public Color AverageTL
        {
            get { return averageColors[0]; }
            set { averageColors[0] = value; }
        }

        public Color AverageTR
        {
            get { return averageColors[1]; }
            set { averageColors[1] = value; }
        }

        public Color AverageBL
        {
            get { return averageColors[2]; }
            set { averageColors[2] = value; }
        }

        public Color AverageBR
        {
            get { return averageColors[3]; }
            set { averageColors[3] = value; }
        }
        #endregion

        #region Konstruktoren

        public ImageInfo()
        {
            path = string.Empty;
            averageColors = new Color[4];
        }

        public ImageInfo(string filename)
        {
            path = filename;
            averageColors = new Color[4];
        }

        public ImageInfo(string filename, Color TL, Color TR, Color BL, Color BR)
        {
            path = filename;
            averageColors = new Color[4] { TL, TR, BL, BR };
        }
        #endregion
    }
}
